﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Documents;
using System.Windows.Shapes;
using System.Windows.Media;

namespace CjcPhotoPrint
{
	public class CropAdorner : Adorner
	{
		public CropAdorner( UIElement adornedElement )
			: base( adornedElement )
		{
			var layer = AdornerLayer.GetAdornerLayer( adornedElement );
			layer.Add( this );

			var rect = new Rectangle { Width = 100, Height = 100, Fill=Brushes.Red };

			base.AddVisualChild( rect );
		}
	}
}